Linux | Codecov |
---|---|
cf_dist_utils
This is a set of utilities to wrap around my fang_oost library. Documentation is on docs.rs. The main features are the ability to compute VaR, the CDF of a distribution, and the expected shortfall of a distribution.
using cf_dist_utils
Put the following in your Cargo.toml:
[]
= "0.7"
Import and use:
extern crate num_complex;
use Complex;
extern crate cf_dist_utils;
let mu=2.0;
let sigma=5.0;
let num_u=128;
let x_min=-20.0;
let x_max=25.0;
let max_iterations=1000;
let tolerance=0.0000001;
let alpha=0.05;
let norm_cf=;
let = get_expected_shortfall_and_value_at_risk;